<!DOCTYPE html>
<html>
    <head>
        <title><?php echo $title; ?></title>
                
        <!-- jQuery UI Scripts -->
        <script src="<?php echo $CONFIG["base_url"] ?>assets/js/jquery-ui/jquery-1.8.3.js"></script>
        <script src="<?php echo $CONFIG["base_url"] ?>assets/js/jquery-ui/jquery-ui-1.9.2.custom.min.js"></script>
        
        <!-- jQuery UI CSS -->
        <link rel="stylesheet" media="screen" href="<?php echo $CONFIG["base_url"] ?>assets/css/ui-lightness/jquery-ui-1.9.2.custom.min.css" />
        
        <!-- Bootstrap -->
        <link rel="stylesheet" media="screen" href="<?php echo $CONFIG["base_url"] ?>assets/css/bootstrap.min.css" />
        
        <!-- Current Site CSS -->
        <link rel="stylesheet" media="screen" href="<?php echo $CONFIG["base_url"] ?>assets/css/style.css" />
        
        
    </head>
    <body>
        <pre>
            <?php echo print_r($_SESSION) ?>
        </pre>
        <div class="container">
            <div class="row">
                <div class="navbar">
                    <div class="navbar-inner">
                        <a class="brand" href="<?php echo $CONFIG["base_url"] ?>/admin">Administrator</a>
                        
                        <?php if (isset($_SESSION["user_email"]) && isset($_SESSION["user_name"])) {?>
                        <ul class="nav">                            
                            <li class="active"><a href="#">Main</a></li>
                            <li><a href="posts.php">Manage Posts</a></li>
                            
                            <?php if ($_SESSION["user_level"] == 1) { ?>
                            <!-- Administrator Only -->
                            <li><a href="#">Manage Categories</a></li>
                            <li><a href="menus.php">Manage Menus</a></li>
                            <li><a href="#">Manage Authors</a></li>
                            <?php } ?>
                        </ul>
                        
                        <ul class="nav pull-right">
                            <li><a href="logout.php">Log Out</a></li>
                        </ul>
                        <?php } ?>                        
                    </div>
                </div>
            </div>
            <div class="row">
